﻿@model List<KRM.Core.tblKRMPhoto>

<table class="table table-bordered table-fix table-hover">
    <thead>
        <tr>
            <th></th>
            <th>Image</th>
            <th>Name</th>
            <th>Description</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var photo in Model)
        {
            <tr>
                <td style="text-align: center">
                    <div class="btn-group">
                        <a href="#" data-toggle="dropdown" class="btn dropdown-toggle"><i class="icon-cog"></i><span class="caret"></span></a>
                        <ul class="dropdown-menu dropdowm-right text-left">
                            <li>
                                <a href="javascript:;" onclick="deletephoto(@photo.PhotoID, @ViewBag.disputeid)" >Delete Image</a>
                            </li>
                            <li>
                                <a href="javascript:;" onclick="editimage(@photo.PhotoID, @ViewBag.disputeid, 'description')" >Edit Image Description</a>
                            </li>
                            <li>
                                <a href="javascript:;" onclick="editimage(@photo.PhotoID, @ViewBag.disputeid, 'name')" >Edit Image Name</a>
                            </li>
                        </ul>
                    </div>
                </td>
                <td>
                    <img src="/rdm/getfile?path=@photo.Path" style="width: 80px; height: 60px" alt="@photo.Name" /></td>
                <td>@photo.Name</td>
                <td>@photo.Description</td>
            </tr>
        }
    </tbody>
</table>
